﻿CREATE TABLE [dbo].[MemberCommitties] (
    [CommittieID]        INT            IDENTITY (1, 1) NOT NULL,
    [Name]               NVARCHAR (256) COLLATE Arabic_CI_AS NULL,
    [Church]             NVARCHAR (256) COLLATE Arabic_CI_AS NULL,
    [OccurrenceType]     TINYINT        NULL,
    [OccurreEveryWeeks]  INT            NULL,
    [DayOfWeek]          TINYINT        NULL,
    [TimeOfWeek]         DATETIME       NULL,
    [DayOfMonth]         TINYINT        NULL,
    [OccurreEveryMonths] TINYINT        NULL,
    [WeekOfMonth]        TINYINT        NULL,
    [IsServant]          BIT            NOT NULL,
    [ServantType]        NVARCHAR (256) COLLATE Arabic_CI_AS NULL,
    [MemberId]           INT            NOT NULL
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'1 = weekly, 2= monthly', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MemberCommitties', @level2type = N'COLUMN', @level2name = N'OccurrenceType';

